<?php

  // Class definitions

class Quartier
{

  private $name;
  private $addr;
  private $responsable;
  private $points;
  private $pt;

  public function __construct($name, $addr, $resp)
  {
    $this->pt[] = 'boitage';
    $this->pt[] = 'collage';
    $this->pt[] = 'marché';
    $this->pt[] = 'diff_tract';
    $this->pt[] = 'autre';

    $this->points = array('type', 'addr');

    $this->name = $name;
    $this->addr = $addr;
    $this->responsable = $resp;

  }

  public function gettypes()
  {
    return $this->pt;
  }

  public function addpoint($type, $addr)
  {
    $i = count($this->points);
    $this->points[$i]['type'] = $type;
    $this->points[$i]['addr'] = $addr
  }

  public function getpoints()
  {
    return $this->points;
  }

};

?>